Skip to content

made some minor improvements:#5

Open
andreashuetter wants to merge 6 commits intomoagrius:masterfrom
andreashuetter:master
Open

made some minor improvements:#5
andreashuetter wants to merge 6 commits intomoagrius:masterfrom
andreashuetter:master

Conversation

@andreashuetter
Copy link

  • make it usable outside of a browser (e.g. Node.js)
  • strict mode
  • add the opportunity to preserve newlines (optional)

If you don't mind I would also like to wrap a module.exports around it (thus we could easily make an npm compatible package of it).


var CommentStripper = function () {

var CommentStripper = function (options) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't love the options object, especially when there's only one option. i'd prefer either just have preserveNewLines as public, or getter and setter methods for it. of course the readme would need to be updated as well

…e' in node.js

Would you adopt those changes into your repository?
And could you also make this available via 'npm install'? You would also have to create a package.json file.
Of course I can do this as well, but because it's originally your code and it's maintained in your repo, I would think it's more appropriate if the npm package is also connected to you...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants